import Vue from "vue";
import Router from "vue-router";
import Home from "./views/Home.vue";
// import Sjwh from "./components/recode/sjwh.vue";
// import Sjsr from "./components/recode/sjsr.vue";
// import Tjbb from "./components/baobiao/tjbb.vue";
// import Nlpg from "./components/pinggu/nlpg.vue";

Vue.use(Router);

export default new Router({
  mode: 'hash',
  routes: [
    {
      path: "/",
      name: "mianFrame",
      component: () =>
        import("./components/MainFrame.vue"),
      children:[
        {
          path: "/txl",
          name: "txl",
          component: () =>
            import("./components/txlGcs/AddressBook.vue")
        },
        {
          path: "/PersonInfo",
          name: "PersonInfo",
          component: () =>
            import("./components/PersonInfo.vue")
        },
        {
          path: "/fagl",
          name: "fagl",
          component: () =>
              import("./components/fagl/faTable.vue")
        },
        {
          path: "/rwCard",
          name: "rwCard",
          component: () =>
              import("./components/fagl/rwCard.vue")
        },
      ]
    },
  ]
});
